package com.ruoyi.walmart.service.Inventory.impl;

import com.ruoyi.walmart.domain.Inventory.FulfillmentInventory;
import com.ruoyi.walmart.mapper.Inventory.FulfillmentInventoryMapper;
import com.ruoyi.walmart.service.Inventory.FulfillmentInventoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class FulfillmentInventoryServiceImpl implements FulfillmentInventoryService {

    @Autowired
    private FulfillmentInventoryMapper fulfillmentInventoryMapper;

    @Override
    public int fulfillmentInventoryInsertList(List<FulfillmentInventory> fulfillmentInventoryList) {
        return fulfillmentInventoryMapper.fulfillmentInventoryInsertList(fulfillmentInventoryList);
    }

    @Override
    public List<FulfillmentInventory> selectFulfillmentInventoryByAuthId(Long authId) {
        return fulfillmentInventoryMapper.selectFulfillmentInventoryByAuthId(authId);
    }

    @Override
    public int deleteFulfillmentInventory(Long authId) {
        return fulfillmentInventoryMapper.deleteFulfillmentInventory(authId);
    }

    @Override
    public List<FulfillmentInventory> selectList(FulfillmentInventory fulfillmentInventory) {
        return fulfillmentInventoryMapper.selectFulfillmentInventoryList(fulfillmentInventory);
    }
}
